/*
 * =====================================================================================
 *
 *       Filename:  timer.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  22.01.2010 11:59:21
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Michal Antonczak (uzyszkodnik), uzyszkodnik.priv@gmail.com
 *        Company:  
 *
 * =====================================================================================
 */
#include "timer.h"

using namespace std;

void Timer::start(){
	startT=SDL_GetTicks();
	lastT=startT;
}

Uint32 Timer::timess(){
	return SDL_GetTicks()-startT;
}
Uint32 Timer::tslc(){
	Uint32 tmp;
	tmp = SDL_GetTicks()-lastT;
	lastT = SDL_GetTicks();
	return tmp;

}
